package org.wzy.spring.framework.context;

/**
 * 仅仅作为子类继承 AbstractApplicationContext 抽象类
 *
 * @author 王政豫
 * @date 2018/5/22 15:32
 */
public class ClassPathXmlApplicationContext extends AbstractApplicationContext {

    /**
     * 构造方法定义 configLocations, 这里会直接执行定位、加载和初始化过程
     *
     * @param configLocations configLocations
     * @author wzy_h
     * @date 2018/5/19 22:50
     * @since 1.8
     */

    public ClassPathXmlApplicationContext(String[] configLocations) throws Exception {
        this(configLocations, true);
    }

    private ClassPathXmlApplicationContext(String[] configLocations, boolean refresh) throws Exception {
        super(configLocations);
        if (refresh) {
            refresh();
        }
    }

    @Override
    protected void refreshBeanFactory() {

    }
}
